<div class="accordion">
<?php foreach ($games as $game_id => $game): ?>
  <h3><a href="#"><?php echo date('d/m/Y', $game['date']).' - '.$game['place'] ?></a></h3>
  <div>
  <?php
    if ($championship['type'] == 'TEAMS')
    {
      include_partial('tournament/mountGameTeamedTable', array(
        'game' => $game,
        'teams' => $teams,
        'players' => $players,
      ));
    }
    else
    {
      include_partial('tournament/mountGameIndividualTable', array(
        'game' => $game,
        'teams' => $teams,
        'players' => $players,
      ));
    }
  ?>
  </div>
<?php endforeach; ?>
</div>
